﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuMark.aspx.cs" Inherits="InformationSystem.WebSite.Module.StuMgr.StuMark" %>

<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        function callback() {
            parent.ResizeFrameHeight(GridPanel1.getHeight());
            //parent.ResizeFrameHeight(ViewPort1.getHeight(500));
        }
    </script>
    <style type="text/css">
        .x-grid3-cell-inner
        {
            font-family: "segoe ui" ,tahoma, arial, sans-serif;
        }
        
        .x-grid-group-hd div
        {
            font-family: "segoe ui" ,tahoma, arial, sans-serif;
        }
        
        .x-grid3-hd-inner
        {
            font-family: "segoe ui" ,tahoma, arial, sans-serif;
            font-size: 12px;
        }
        
        .x-grid3-body .x-grid3-td-Cost
        {
            background-color: #f1f2f4;
        }
        
        .x-grid3-summary-row .x-grid3-td-Cost
        {
            background-color: #e1e2e4;
        }
        
        .total-field
        {
            background-color: #fff;
            font-weight: bold !important;
            color: #000;
            border: solid 1px silver;
            padding: 2px;
            margin-right: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server">
        <Listeners>
            <DocumentReady Fn="callback()" />
        </Listeners>
    </ext:ResourceManager>
    <ext:GridPanel ID="GridPanel1" runat="server" Frame="true" StripeRows="true" Title="学生成绩"
        AutoExpandColumn="coursename" AnimCollapse="false" Icon="ApplicationViewColumns"
        TrackMouseOver="false" Width="650" Height="450">
        <Store>
            <ext:Store ID="StuMarkStore" runat="server" GroupOnSort="false" GroupField="coursesessiondescp"
                RemoteSort="true">
                <SortInfo />
                <Reader>
                    <ext:JsonReader>
                        <Fields>
                            <ext:RecordField Name="recordid" Mapping="RecordID" Type="Int" />
                            <ext:RecordField Name="userid" Mapping="UserID" Type="String" />
                            <ext:RecordField Name="username" Mapping="UserName" Type="String" />
                            <ext:RecordField Name="courseid" Mapping="CourseID" Type="String" />
                            <ext:RecordField Name="coursename" Mapping="CourseName" Type="String" />
                            <ext:RecordField Name="coursesessiondescp" Mapping="CourseSessionDescp" Type="String" />
                            <ext:RecordField Name="mark" Mapping="Mark" Type="Int" />
                            <ext:RecordField Name="markstring" Mapping="MarkString" Type="String" />
                        </Fields>
                    </ext:JsonReader>
                </Reader>
            </ext:Store>
        </Store>
        <ColumnModel runat="server">
            <Columns>
                <ext:Column DataIndex="coursesessiondescp" />
                <ext:Column ColumnID="userid" Header="学号" Width="80" DataIndex="userid" />
                <ext:Column ColumnID="username" Header="姓名" DataIndex="username" Width="100" />
                <ext:Column ColumnID="coursename" Header="课程" DataIndex="coursename" Width="200" />
                <ext:Column ColumnID="markstring" Header="成绩" DataIndex="markstring" Width="50" />
            </Columns>            
        </ColumnModel>
        <view>
            <ext:GroupingView ID="GroupingView1" runat="server" ForceFit="true" MarkDirty="false" ShowGroupName="false"
                EnableNoGroups="true" HideGroupedColumn="true">
            </ext:GroupingView>
        </view>
    </ext:GridPanel>
    </form>
</body>
</html>
